﻿<include file="Public:header" />
<!-- MAIN CONTENT start -->
<div class="span3">
    <div class="well" style="padding: 8px 0;">
        <ul class="nav nav-list">
            <p>
                <div class="btn-group" data-toggle="buttons-radio">
                    <button class="btn" style="width: 120px;" onclick="location.href='{:U(\'Mail/index\')}'">
                        <span class="icon-inbox"></span>收信
                    </button>
                    <button class="btn" style="width: 120px;" onclick="location.href='{:U(\'Mail/add\')}'">
                        <span class="icon-edit"></span>发信
                    </button>
                </div>
            </p>
            <li class="nav-header">
                个人信息
            </li>
            <li>
                <i class="icon-time"></i>名次：{$solution.rangking}
            </li>
            <li class="divider">
            </li>
            <li>
                <a href="{:U('/Status/index/',array('user_id'=>$user['user_id'],'result'=>4))}">
                    <i class="icon-check"></i>解决：{$solution.ac_num}
                </a>

            </li>
            <li>
                <a href="{:U('/Status/index/',array('user_id'=>$user['user_id']))}">
                    <i class="icon-list-alt"></i>提交：{$solution.sub_num}
                </a>
                <ul class="nav nav-list">
                    <foreach name="solution.solution_info" item="v_so">
                        <li>
                            <i class="icon-flag"></i>{$v_so.name}：{$v_so.num}
                        </li>
                    </foreach>
                </ul>
            </li>
            <li class="divider">
            </li>
            <li>
                <i class="icon-folder-open"></i>学校：{$user.school}
            </li>
            <li class="active">
                <i class="icon-ok"></i>邮箱：{$user.email}
            </li>
            <li class="divider">
            </li>
            <li>
                <a href="#">
                    <i class="icon-comment"></i>论坛
                </a>
            </li>
        </ul>
    </div>
</div>
<div class="span9">
    <h3>
        Messages
    </h3>
    <ul class="messages">
        <legend>
            <if condition="$session['user_id'] == $info['from_user']">
                To User:<em>{$info.to_user}</em>
            <else/>
                From User:<em>{$info.from_user}</em>
            </if>
            <small style="float: right;"><a href="javascript:history.go(-1)">返回>></a></small>
        </legend>
        <!--<legend>Messages</legend>-->
        <li class="well">
            <if condition="$session['user_id'] == $info['from_user']">
                <span class="meta">Written <em>{$info.in_date|timeExchange}</em> by <em> Myself </em></span>
                <else/>
                <span class="meta">
                    Written <em>{$info.in_date|timeExchange}</em> by <em>{$info.from_user}</em>
                    &nbsp;&nbsp;&nbsp;
                    <a class="toggle-link" href="{:U('Mail/reply',array('id'=>$info['from_user']))}">Reply</a>
                </span>
            </if>
            <p class="message">
               <pre style="border: 0px;">
                 {$info.content}
                </pre>
            </p>
        </li>

    </ul>
</div>

<!-- MAIN CONTENT -->
<include file="Public:footer" />